﻿using System;
using System.Linq;
using System.Text;
using Model.Core;
using SIE.SCADA.SqlSugar;

namespace Models
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("scada_equipment")]
    public partial class scada_equipment: NotifyPropertyChanged
    {
           public scada_equipment(){


           }
           /// <summary>
           /// Desc:
           /// Default:nextval('scada_equipment_id_seq'::regclass)
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity=true)]
           public int id {get;set;}

           /// <summary>
           /// Desc:ip地址
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ip {get;set;}

           /// <summary>
           /// Desc:端口
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string port {get;set;}

           /// <summary>
           /// Desc:工具号
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string toolid {get;set;}

           /// <summary>
           /// Desc:设备名称
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string equipname {get;set;}

        
        public string processcode { get; set; }


        public string processcodeDesc { get; set; }


        public string processGroupcode { get; set; }


        public string processGroupcodeDesc { get; set; }


















        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string autoconn {get;set;}

           /// <summary>
           /// Desc:站号
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string station {get;set;}

           /// <summary>
           /// Desc:是否启用
           /// Default:
           /// Nullable:True
           /// </summary>           
           public short? isenabed {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           

        private string _state;

        public string state
        {
            get { return _state; }
            set
            {
                if (value != _state)
                {
                    _state = value;
                    OnPropertyChanged(nameof(state));
                }
            }
        }


        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        //public DateTime? ModifyTime_Dt {get;set;}

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        //public string ModifyUser_Str {get;set;}

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        //public DateTime? CreateTime_Dt {get;set;}

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        //public string CreateUser_Str {get;set;}

        /// <summary>
        /// Desc:计划日期
        /// Default:
        /// Nullable:True
        /// </summary>           

        private DateTime? _plantdate;

        public DateTime? plantdate
        {
            get { return _plantdate; }
            set
            {
                if (value != _plantdate)
                {
                    _plantdate = value;
                    OnPropertyChanged(nameof(plantdate));
                }
            }
        }


        /// <summary>
        /// Desc:检定结果	检定结果
        /// Default:
        /// Nullable:True
        /// </summary>           

        private string _checkresulty;

        public string checkresult
        {
            get { return _checkresulty; }
            set
            {
                if (value != _checkresulty)
                {
                    _checkresulty = value;
                    OnPropertyChanged(nameof(checkresult));
                }
            }
        }


        /// <summary>
        /// Desc:设备编号
        /// Default:
        /// Nullable:True
        /// </summary>           
        private string _equipmentid;

        public string equipmentid
        {
            get { return _equipmentid; }
            set
            {
                if (value != _equipmentid)
                {
                    _equipmentid = value;
                    OnPropertyChanged(nameof(equipmentid));
                }
            }
        }

        /// <summary>
        /// KJF 20210401 新增
        /// 
        /// </summary>
        private string _workbin;

        public string workbin
        {
            get { return _workbin; }
            set
            {
                if (value != _workbin)
                {
                    _workbin = value;
                    OnPropertyChanged(nameof(_workbin));
                }
            }
        }



        /// <summary>
        /// KJF 20210401 新增
        /// 
        /// </summary>
        private string _workbinname;

        public string workbinname
        {
            get { return _workbinname; }
            set
            {
                if (value != _workbinname)
                {
                    _workbinname = value;
                    OnPropertyChanged(nameof(_workbinname));
                }
            }
        }



    }
}
